package com.yx.model.factory.method;

/**
 * @author yangx
 */
public class Main {
    public static void main(String[] args) {
        SendFactory sendFactory = new SendMailFactory();
        Sender sender = sendFactory.produce();
        sender.send();

        SendFactory sendFactory1 = new SendSmsFactory();
        Sender sender1 = sendFactory1.produce();
        sender1.send();

        SendFactory sendFactory2 = new SendVoiceFactory();
        Sender sender2 = sendFactory2.produce();
        sender2.send();
    }
}
